import request from '@/api/request'

// 获取地址列表
export function findArticles(data) {
  return request({
    url: '/lejuAdmin/companyAddress/addressList',
    method: 'get',
    data
  })
}
export function save(data) {
    return request({
      url: '/lejuAdmin/companyAddress/save',
      method: 'post',
      data
    })
  }
  export function setReceiveOne(data) {
    return request({
      url: '/lejuAdmin/companyAddress/setReceiveOne',
      method: 'post',
      data
    })
  }
  export function setSendOne(data) {
    return request({
      url: '/lejuAdmin/companyAddress/setSendOne',
      method: 'post',
      data
    })
  }
//   更新
  export function update(data) {
    return request({
      url: '/lejuAdmin/companyAddress/update',
      method: 'post',
      data
    })
  }
//   删除
  export function delcompanyAddress(id) {
    return request({
      url: `/lejuAdmin/companyAddress/${id}`,
      method: 'delete',
    })
  }
//   地址明细
  export function companyAddress(id) {
    return request({
      url: `/lejuAdmin/companyAddress/${id}`,
      method: 'get',
    })
  }